package com.train.daily.resp.station;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DailyTrainStationPageQueryResp {

    /**
     * 站序|第一站是0
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long index;

    /**
     * 站名
     */
    private String name;

    /**
     * 进站时间
     */
    private LocalTime inTime;
    /**
     * 出站时间
     */
    private LocalTime outTime;
    /**
     * 停站时长
     */
    private LocalTime stopTime;
}
